import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import {LoeeEntity} from '../../../comentity'

/**
 * 描述
 */
@EntityModel('student')
export class studentEntity extends LoeeEntity {
  @Column({ comment: '姓名' })
  name: string;

  @Column({ comment: '学号',unique: true})
  student_id: string;

  @Column({ comment: '性别，1:男;0:女;2:未知',default:2 })
  gender: number;

  @Column({ comment: '出生日期' })
  birthday: Date;

  @Column({ comment: '手机号码'})
  phone: string;

  @Column({ comment: '状态' })
  status: number;

  @Column({ comment: '报名日期' })
  into_date: Date;

  @Column({ comment: '暂停时间', nullable: true})
  stop_time: Date;

  // @Column({ comment: '是否分班', default:false})
  // is_classgroup: Boolean;

  @Column({ comment: '备注', nullable: true,length:1000})
  note: string;

  @Column({ comment: '身份证号码',length:18,nullable:true,default:null})
  id_card_number: string;

  @Column({ comment: '照片',length:1000,nullable:true,default:null})
  photo: string;
}
